{include file="pageheader_erp.htm"}

<link href="styles/erp_warehousing.css" rel="stylesheet" type="text/css" />

{insert_scripts files="../js/jquery.1.3.2.js"}
{insert_scripts files="../js/jquery.blockUI.2.23.js"}

{include file="erp_stock_record_search.htm"}

<style type="text/css">
	.current_page_style
	{
		color:red;
		font-weight:bold;
	}
</style>


<!-- start stock record list -->
 <div class="list-div" id="listDiv">
<table  cellpadding="3" cellspacing="1">
  <tr>
    <th  width="5%">{$lang.erp_stock_record_id}</th>
    <th width="80">{$lang.erp_stock_record_goods_img}</th>	
	<th width="8%">{$lang.erp_stock_record_goods_sn}</th>
 	<th  width="8%">{$lang.erp_stock_record_goods_name}</th>	
	<th  width="8%">{$lang.erp_stock_record_goods_attr}</th>	
	<th  width="8%">{$lang.erp_stock_record_warehouse_name}</th>
	<th  width="8%">{$lang.erp_stock_record_w_d_style}</th>
	<th  width="8%">{$lang.erp_stock_record_w_d_sn}</th>
	<th  width="10%">{$lang.erp_stock_record_order_sn}</th>
	<th  width="8%">{$lang.erp_stock_record_w_d_qty}</th>
	<th  width="8%">{$lang.erp_stock_record_w_d_name}</th>
	<th  width="8%">{$lang.erp_stock_record_date}</th>
  </tr>
  {foreach from=$stock_record key=key item=stock_record}
 	<tr>
 		<td align="center">{$stock_record.stock_id}</td>
		<td align="center"><img width="50" height="50" src="{if $stock_record.goods_info.goods_img}{$stock_record.goods_info.goods_img}{else}images/no_img.gif{/if}" /></td>
		<td align="center">{$stock_record.goods_info.goods_sn}</td>
		<td align="center">{$stock_record.goods_info.goods_name}</td>
		<td align="center">

		{if $stock_record.goods_attr}
		<table>
			<tr>
				{foreach from=$stock_record.goods_attr.attr_info key=key item=attr}
					<td>
						{$attr.attr_value}
					</td>
				{/foreach}
			</tr>
		</table>
		{else}
			$$
		{/if}
					
			
		</td>
		<td align="center">{$stock_record.warehouse_name}</td>
		<td align="center">{$stock_record.w_d_style}</td>
		<td align="center">{$stock_record.w_d_sn}</td>
		<td align="center">{$stock_record.order_sn}</td>
		<td align="center"><span style="font-weight:bold;color:{if $stock_record.qty lt 0}red;{else}blue;{/if}">{$stock_record.qty}</span></td>
		<td align="center">{$stock_record.w_d_name}</td>
		<td align="center">{$stock_record.act_date}</td>
 	</tr>
  {foreachelse}
  <tr><td class="no-records" colspan="12">{$lang.no_records}</td></tr>
  {/foreach}
  <tr><td colspan="12" align="right">{$page}</td></tr> 
</table>
</div>
<!-- end stock record list -->

{include file="pagefooter.htm"}

